<?php
/*
 * @Author: zls 3292844045@qq.com
 * @Date: 2022-05-23 10:01:16
 * @LastEditors: zls 3292844045@qq.com
 * @LastEditTime: 2022-05-23 16:31:18
 * @FilePath: \CUCCL\php\main\carouselFigure.php
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

    include_once('../connect.php');

    $sql = "select img_src from carousel_figure";
    $data = mysqli_query($conn, $sql);
    $res = [];




    
    $arr = array();
    while($info = mysqli_fetch_array($data)){
        $arr[] = $info;
    }
    if($arr){
        $res['status'] = true;
        $res['msg'] = '查询成功';
        $res['list'] = $arr;
    }else{
        $res['status'] = false;
        $res['msg'] = '查询失败';
    }

    echo(json_encode($res));
?>